package org.example.provider.day01;

import org.apache.dubbo.config.annotation.DubboService;
import org.example.api.RpcResult;
import org.example.api.day01.IHello;

@DubboService(version = "1.0.0",validation = "true",timeout = 60 * 10)
public class HelloProvider implements IHello {
    @Override
    public RpcResult<String> sayHi(String name) {
        System.out.println("call from client,args : " + name );
        return RpcResult.success("sayHi to " + name);
    }
}
